/*
* 1videoConference -- An open source video conferencing platform.
*
* Copyright (C) 2007 - 2008, Adiance Technologies Pvt. Ltd.
*
* Hardik Sanghvi <hardik.sanghvi @adiance.com>
*
* See http://www.1videoconference.org for more information about
* the 1videoConference project. Please do not directly contact
* any of the maintainers of this project for assistance;
* the project provides a web site, forums and mailing lists
* for your use.
*
* This program is free software, distributed under the terms of
* the GNU General Public License Version 2. See the LICENSE file
* at the top of the source tree.
*/

using System;
using System.Collections.Generic;
using System.Text;
using System.ServiceModel;

namespace _videoConference.BAL
{
    [ServiceContract(CallbackContract = typeof(IsvcPageNavigation))]
    public interface IsvcPageNavigation
    {
        [OperationContract(IsOneWay = true)]
        void svcJoin(string uName);

        [OperationContract(IsOneWay = true)]
        void svcSetPageName(string message,string meetingid);

        [OperationContract(IsOneWay = true)]
        void svcLogOutAll(string meetingid);
    }
        
    public interface IPageNavigationChannel:IsvcPageNavigation,IClientChannel
    {
    }

    public class PageNavigationClass:IsvcPageNavigation
    {
        public delegate void UserJoin(string uname);
        public delegate void PageName(string layoutname,string meetingid);
        public delegate void LogOutAll(string meetingid);

        public event UserJoin NewJoin;
        public event PageName SetPageName;
        public event LogOutAll Logout;

        public void svcJoin(string uname)
        {
            NewJoin(uname);
        }

        public void svcSetPageName(string layoutname,string meetingid)
        {
            SetPageName(layoutname,meetingid);
        }

        public void svcLogOutAll(string meetingid)
        {
            Logout(meetingid);
        }
    }


}
